package com.daJiao.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.daJiao.domain.BaseEntity;
import com.daJiao.domain.CreateValidate;
import io.swagger.annotations.ApiModel;
import lombok.*;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

@Builder
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "sysRole")
@TableName("sys_role")
public class SysRole extends BaseEntity implements Serializable {

    private static final long serialVersionUID = -3034820223936073111L;

    /**
     * 角色编码
     */
    private String roleCode;

    /**
     * 角色名称
     */
    @NotEmpty(message = "角色名称不能为空", groups = {CreateValidate.class})
    private String roleName;

    /**
     * 状态
     */
    private Integer status;

}